Skip to main content

CreateVpnRouteEntry

Description

call CreateVpnRouteEntry to create VPN destination route.

Request Method

POST

Request Path

/apsara/route/Vpc/CreateVpnRouteEntry

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
RouteDestBODYstringYes10.0.0.0/24the destination network segment of the destination route.
DescriptionBODYstringNomytestdescription information of VPN destination route.
OverlayModeBODYstringNoIpsecoverride mode.
VpnGatewayIdBODYstringYesvpn-bp1a3kqjiiq9legfx****VPN gateway ID.
regionIdBODYstringYesNo sample value for this parameter.region id
NextHopBODYstringYesvco-bp15oes1py4i66rmd****the next hop of the destination route.
PublishVpcBODYbooleanYestruewhether to publish the destination route to VPC, value: true: The destination is routed to the VPC. false: Do not publish destination routes to VPC.
RegionIdBODYstringYescn-qingdao-env66-d01the region ID where the VPN destination route is located. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNod7d24a21-f4ba-4454-9173-b3828dae492bclient token, used to ensure the idempotence of the request. The parameter value is generated by the client. It must be unique between different requests, and the maximum value does not exceed 64 ASCII characters.
versionBODYstringNo2016-01-01version of api
WeightBODYintegerYes0the weight value of the destination route, value: 0: low priority. 100: high priority. indicates destination routes of the same destination network segment. it is not supported to set the weight value to 100 at the same time.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}